#ifndef CHARSWIDGET_H
#define CHARSWIDGET_H

#include <QtGui>
#include "charsmodel.h"
#include "ui_charswidget.h"

class CharsWidget: public QWidget, private Ui::CharsWidget
{
Q_OBJECT

public:

CharsWidget();
~CharsWidget();
void set_model();

public slots:

void set_font();
void index_selected( QModelIndex index );
void reset_model( int ind );
void update_merging( bool enable );
void update_clipboard();

signals:

private:

QList< QVector<int> > set_ranges( int i );
QFont default_font;
QFont unicode_font;
QString unicode_font_str;
void readSettings();
void writeSettings();
QClipboard * clipboard;
QString font_family;

protected:

void closeEvent( QCloseEvent * e );

};

#endif // CHARSWIDGET_H
